<%- include("./header")%>

    <div class="container mt-5">
        <h2 class="mb-4">当前栏目：<%=list[0].name%></h2>
        <div class="row row-cols-4">
            <%for(let i = 0 ; i < list.length;i++){%>
                <div class="col my-3">
                    <div class="card h-100">
                        <img src="holder.js/100px150" class="card-img-top" alt="...">
                        <div class="card-body">
                            <h5 class="card-title"><%=list[i].title%></h5>
                            <p
                                    class="card-text"><small class="text-muted"><%=list[i].time.toLocaleString()%></small></p>
                            <p class="card-text">内容简要... <%=list[i].content.replace(/<[^>]+>/g,'').substring(0,66)%></p>
                            <a href="/article/detail/<%=list[i].id%>" class="stretched-link"></a>
                        </div>
                    </div>
                </div>
            <%}%>
        </div>
    </div>

   <%- include("./footer")%>